﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuestTools
{
    public partial class Alphabet : Form
    {
        public Alphabet()
        {
            InitializeComponent();
        }

        public Alphabet(Form parent)
            : this()
        {
            //Change style for window with alphabet
            this.ShowInTaskbar = false;
            this.Owner = parent;
            this.AutoSize = true;
            uint style = (uint)WinApi.GetWindowLong(this.Handle, WinApi.GWL_STYLE);
            style |= WinApi.WS_CHILD;
            WinApi.SetWindowLong(this.Handle, (int)WinApi.GWL_STYLE, (int)style);
            WinApi.SetParent(this.Handle, WinApi.GetDesktopWindow());
            this.Visible = false;
        }
    }
}
